<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>

<table id="listImportantVehicleList" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td class="rvimscheckbox"><input type="checkbox" onclick="selectAllForList('listImportantVehicleList')"></td>
			<td>号牌号码</td>
			<td>号牌种类</td>
			<td>车身颜色</td>
			<td>车辆类型</td>
			<td>车辆品牌</td>
			<td>有效期</td>
			<td>审核状态</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${page.results}" var="importantVehicle">
			<tr id="objId_${importantVehicle.id}">
				<td><input type="checkbox" name="importantVehicleIds" value="<c:out value='${importantVehicle.id}'/>"></td>
				<td><c:out value="${importantVehicle.plateNum}"/></td>
				<td><c:out value="${importantVehicle.plateType.name}"/></td>
				<td><c:out value="${importantVehicle.vehicle.vehiclecolor}"/></td>
				<td><c:out value="${importantVehicle.vehicle.vehicletype}"/></td>
				<td><c:out value="${importantVehicle.vehicle.vehiclebrand}"/></td>
				<td><c:out value="${importantVehicle.effectiveStartTime}"/> 到 <c:out value="${importantVehicle.effectiveEndTime}"/></td>
				<td><c:out value="${importantVehicle.importantVehicleAuditId}"/></td>
				<td class="rvimsoperation">
					<a href="javascript:ajaxShowImportantVehicleView('${importantVehicle.id}')" title="详细信息"><span class="ui-icon ui-icon-document"></span></a> 
					<a href="javascript:ajaxShowImportantVehicleEdit('${importantVehicle.id}')" title="修改"><span class="ui-icon ui-icon-pencil"></span></a> 
					<a href="javascript:ajaxDeleteImportantVehicleById('${importantVehicle.id}')" title="删除"><span class="ui-icon ui-icon-trash"></span></a>
					<c:choose> 
						<c:when test="${importantVehicle.importantVehicleAudit.auditResult.code == 0}">
							<a href="javascript:ajaxShowImportantVehicleAudit('${importantVehicle.id}')" title="审核"><span class="ui-icon ui-icon-contact"></span></a>
						</c:when>
						<c:otherwise>
							<a href="javascript:ajaxRepealImportantVehicle('${importantVehicle.id}')" title="撤销"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span></a>
						</c:otherwise>
					</c:choose>					
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div id="rvimsPaginationPanel"></div>
<div id="dialog2"></div>
<script type="text/javascript">
	setTableCSS("listImportantVehicleList");
	setPagination("rvimsPaginationPanel","${page.totalPageCount}","${page.pageNum}","${page.pageSize}","${page.totalCount}",ajaxFindImportantVehicleSearchList);
</script>